
#include <BAudioInput>

using namespace BWE;

class Recorder : public BAudioInput
{
public:
	Recorder();
	~Recorder();

	const BByteArray& buffer() const;
	bool clear();

protected:
	virtual bool audioEvent(const BAudioEvent& audioEvent);

private:
	BByteArray		_buffer;
};